<?php
/**
*A tabbed HTMl element.
*@package Html
*@author Willy Gardiol <willy@gardiol.org>
*@version 1.0
*@subpackage Smarty
*/
function smarty_function_getAtomData($params, &$smarty)
{
	static $atom_data = array();
	$atom_id = $params["atom_id"];
	if ( ($data = Box::Data( $atom_id )) !== false )
	{
		$smarty->assign("atom_valid", true );
		$atom_data[$atom_id] = $data;
	}
	else
		$smarty->assign("atom_valid", false );
	$smarty->assignByRef("atom_data", $atom_data );
}
?>